﻿
namespace HSS
{
	#region ExceptionEventArgs
	/// <summary>
	/// A utililty EventArgs class for passing exceptions from an Event.
	/// </summary>
	public class ExceptionEventArgs : System.EventArgs
	{
		#region Constructors
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="ex"></param>
		public ExceptionEventArgs(System.Exception ex)
		{
			this.Exception = ex;
		}
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="ex"></param>
		/// <param name="handled"></param>
		public ExceptionEventArgs(System.Exception ex, bool handled)
		{
			this.Exception = ex;
			this.Handled = handled;
		}
		#endregion

		#region Properties
		/// <summary>
		/// Gets or sets the Exception.
		/// </summary>
		public System.Exception Exception { get; set; }
		/// <summary>
		/// Gets or sets if the Exception was handled.
		/// </summary>
		public bool Handled { get; set; }
		#endregion
	}
	#endregion
}
